package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工作上报
 * </p>
 *
 * @author lxp
 * @since 2022-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mms_report")
@ApiModel(value = "Report对象", description = "工作上报")
public class Report extends Model<Report> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime addtime;

    @ApiModelProperty(value = "名称")
    private String upTitle;


    @TableField(exist = false)
    private List<Reportup> reportupList;

    @TableField(exist = false)
    private List<Report> reports;


    @TableField(exist = false)
    private List<String>paths;

    @TableField(exist = false)
    private List<Reportup> reportups;

    @ApiModelProperty(value = "地址")
    private String path;

//    @TableField(exist = false)
//    private List<String> paths;

    @ApiModelProperty(value = "上报日期")
    private LocalDate upDate;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "师")
    private Integer shi;

    @ApiModelProperty(value = "团")
    private Integer tuan;

    @ApiModelProperty(value = "营")
    private Integer ying;

    @ApiModelProperty(value = "连")
    private Integer lian;

    @ApiModelProperty(value = "分队")
    private Integer fendui;

    @ApiModelProperty(value = "工作评价")
    private String suggest;

    @ApiModelProperty(value = "审核回复")
    private String replay;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
